package com.zian.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
 @ApiModel( "提交订单DTO")

public class SubmitOrderDTO {

    @ApiModelProperty( "收货地址id")
    @NotNull(message = "收货地址id不能为空")
    private Long addressId;

    @ApiModelProperty( value = "购物项" , required = false)
    private List<Long> cartItemIds;

    @ApiModelProperty(value = "商品id" , required = false)
    private Long goodsId;
}
